﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter14.Code01.Code02
{
    public class Demo
    {
        public static void Begin()
        {
            {
                int[] myIntArray = new int[5] { 5, 9, 10, 2, 99 };
            }
            {
                List<int> myIntCollection = new List<int> { 5, 9, 10, 2, 99 };
            }
            {
                List<Curry> curries = new List<Curry>();
                curries.Add(new Curry("Chicken", "Pathia", 6));
                curries.Add(new Curry("Vegetable", "Korma", 3));
                curries.Add(new Curry("Prawn", "Vindaloo", 9));
            }
            {
                List<Curry> moreCurries = new List<Curry>
                {
                    new Curry
                    {
                        MainIngredient = "Chicken",
                        Style = "Pathia",
                        Spiciness = 6
                    },
                    new Curry
                    {
                        MainIngredient = "Vegetable",
                        Style = "Korma",
                        Spiciness = 3
                    },
                    new Curry
                    {
                        MainIngredient = "Prawn",
                        Style = "Vindaloo",
                        Spiciness = 9
                    }
                };
            }
        }
    }
}
